﻿Imports System
Imports System.Collections

Public Class RolOpcionBE
#Region "Campos y Propiedades"
    Private _IdRol As Integer
    Private _IdPermiso As Integer
    Private _Estado As String
    Private _FechaCreacion As DateTime
    Private _FechaModificacion As DateTime

    Public Property IdRol() As Integer
        Get
            Return _IdRol
        End Get
        Set(ByVal value As Integer)
            _IdRol = value
        End Set
    End Property

    Public Property IdPermiso() As Integer
        Get
            Return _IdPermiso
        End Get
        Set(ByVal value As Integer)
            _IdPermiso = value
        End Set
    End Property

    Public Property Estado() As String
        Get
            Return _Estado
        End Get
        Set(ByVal value As String)
            _Estado = value
        End Set
    End Property

    Public Property FechaCreacion() As DateTime
        Get
            Return _FechaCreacion
        End Get
        Set(ByVal value As DateTime)
            _FechaCreacion = value
        End Set
    End Property

    Public Property FechaModificacion() As DateTime
        Get
            Return _FechaModificacion
        End Get
        Set(ByVal value As DateTime)
            _FechaModificacion = value
        End Set
    End Property


#End Region

#Region "Constructores"

    Public Sub New()

    End Sub

    Public Sub New(ByVal IdRol As Integer, ByVal IdPermiso As Integer, ByVal Estado As String, ByVal FechaCreacion As DateTime, ByVal FechaModificacion As DateTime)
        Me._IdRol = IdRol
        Me._IdPermiso = IdPermiso
        Me._Estado = Estado
        Me._FechaCreacion = FechaCreacion
        Me._FechaModificacion = FechaModificacion
    End Sub
#End Region
End Class

Public Class RolOpcionBECollection
    Inherits CollectionBase

    Default Public Property Item(ByVal index As Integer) As RolOpcionBE
        Get
            Return CType(List(index), RolOpcionBE)
        End Get
        Set(ByVal value As RolOpcionBE)
            List(index) = value
        End Set
    End Property

    Public Function Add(ByVal value As RolOpcionBE) As Integer
        Return (List.Add(value))
    End Function

    Public Function IndexOf(ByVal value As RolOpcionBE) As Integer
        Return (List.IndexOf(value))
    End Function

    Public Sub Insert(ByVal index As Integer, ByVal value As RolOpcionBE)
        List.Insert(index, value)
    End Sub

    Public Sub Remove(ByVal value As RolOpcionBE)
        List.Remove(value)
    End Sub

    Public Function Contains(ByVal value As RolOpcionBE) As Boolean
        Return (List.Contains(value))
    End Function
End Class


